home *** CD-ROM | disk | FTP | other *** search
- import javax.microedition.lcdui.Display;
- import javax.microedition.midlet.MIDlet;
-
- public class Datum extends MIDlet {
- private StartForm startForm;
- private InputForm inputForm;
- private InfoForm infoForm;
- public String appName = "DateCalc V0.9.1";
-
- protected void destroyApp(boolean flag) {
- ((MIDlet)this).notifyDestroyed();
- }
-
- protected void pauseApp() {
- }
-
- protected void startApp() {
- this.startForm = new StartForm(this);
- this.inputForm = new InputForm(this.appName);
- this.infoForm = new InfoForm(this.appName);
- this.inputForm.setMidlet(this);
- this.infoForm.setMidlet(this);
- this.viewStartForm();
- }
-
- public void viewStartForm() {
- Display.getDisplay(this).setCurrent(this.startForm);
- }
-
- public void viewInputForm() {
- Display.getDisplay(this).setCurrent(this.inputForm);
- }
-
- public void viewInfoForm() {
- Display.getDisplay(this).setCurrent(this.infoForm);
- }
- }
-